import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vite.dev/config/
export default defineConfig({
  plugins: [vue()],
  server:{
    port:8081,
    proxy:{
      "/api":{
        // target:'https://mock.apipark.cn/m1/4068509-0-default',
        target:'http://localhost:3000',
        changeOrigin:true,
        rewrite:(path)=>path.replace(/^\/api/,'')
      }
  
    }
  },
  
})
